package com.android.search;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;

public class OnItemClick implements OnClickListener {

	//private Intent mIntent;
	private Context mContext;
	
	public OnItemClick(Context c, Intent i) {
		mContext = c;
		//mIntent = i;
	}
	
	public void onClick(View arg0) {				
		//String id = mIntent.getExtras().getString("id");
		//String name = mIntent.getExtras().getString("name");
		
		//Get movie info from server
		Intent i = new Intent(mContext, DetailsActivity.class); 
		mContext.startActivity(i);
		
	}				
}

